package com.atguigu.tingshu.album.client.impl;


import com.atguigu.tingshu.album.client.AlbumInfoFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.vo.album.AlbumStatVo;
import org.springframework.stereotype.Component;

@Component
public class AlbumInfoDegradeFeignClient implements AlbumInfoFeignClient {


    @Override
    public Result<AlbumInfo> getAlbumInfo(Long albumId) {
        System.out.println("熔断");
        return null;
    }

    /**
     * 通过专辑Id 获取到专辑状态信息
     *
     * @param albumId
     * @return
     */
    @Override
    public Result<AlbumStatVo> getAlbumStatVo(Long albumId) {
        return null;
    }
}
